package com.wx_shop.api.util.wx.vo;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 微信接收对象
 * 
 * @author leiwuluan
 */
@SuppressWarnings("serial")
@XmlRootElement(name="xml")
public class WeixinMsgReq implements Serializable {

	@XmlElement private String ToUserName; // 开发者微信号
	@XmlElement private String FromUserName; // 发送方帐号（一个OpenID）
	@XmlElement private Long CreateTime; // 消息创建时间 （整型）
	@XmlElement private String MsgType; // voice/image/text/video/location/link/event/CLICK

	@XmlElement private String Content; // 文本消息内容

	@XmlElement private String PicUrl; // 图片链接（由系统生成）

	@XmlElement private String MediaId; // 语音消息媒体id，可以调用多媒体文件下载接口拉取该媒体
	@XmlElement private String Format; // 语音格式：amr

	@XmlElement private String ThumbMediaId; // 视频消息媒体id，可以调用多媒体文件下载接口拉取数据

	@XmlElement private String Location_X; // 地理位置维度
	@XmlElement private String Location_Y; // 地理位置经度
	@XmlElement private Integer Scale; // 地图缩放大小
	@XmlElement private String Label; // 地理位置信息

	@XmlElement private String Title; // 消息标题
	@XmlElement private String Description; // 消息描述
	@XmlElement private String Url; // 消息链接
	@XmlElement private Long MsgId;

	@XmlElement private String Event; // subscribe/unsubscribe
	@XmlElement private String EventKey; //
	@XmlElement private String Ticket; // 二维码的ticket，可用来换取二维码图片

	public String getToUserName() {
		return ToUserName;
	}

	public void setToUserName(String toUserName) {
		ToUserName = toUserName;
	}

	public String getFromUserName() {
		return FromUserName;
	}

	public void setFromUserName(String fromUserName) {
		FromUserName = fromUserName;
	}

	public Long getCreateTime() {
		return CreateTime;
	}

	public void setCreateTime(Long createTime) {
		CreateTime = createTime;
	}

	public String getMsgType() {
		return MsgType;
	}

	public void setMsgType(String msgType) {
		MsgType = msgType;
	}

	public String getContent() {
		return Content;
	}

	public void setContent(String content) {
		Content = content;
	}

	public Long getMsgId() {
		return MsgId;
	}

	public void setMsgId(Long msgId) {
		MsgId = msgId;
	}

	public String getPicUrl() {
		return PicUrl;
	}

	public void setPicUrl(String picUrl) {
		PicUrl = picUrl;
	}

	public String getMediaId() {
		return MediaId;
	}

	public void setMediaId(String mediaId) {
		MediaId = mediaId;
	}

	public String getFormat() {
		return Format;
	}

	public void setFormat(String format) {
		Format = format;
	}

	public String getThumbMediaId() {
		return ThumbMediaId;
	}

	public void setThumbMediaId(String thumbMediaId) {
		ThumbMediaId = thumbMediaId;
	}

	public String getLocation_X() {
		return Location_X;
	}

	public void setLocation_X(String location_X) {
		Location_X = location_X;
	}

	public String getLocation_Y() {
		return Location_Y;
	}

	public void setLocation_Y(String location_Y) {
		Location_Y = location_Y;
	}

	public Integer getScale() {
		return Scale;
	}

	public void setScale(Integer scale) {
		Scale = scale;
	}

	public String getLabel() {
		return Label;
	}

	public void setLabel(String label) {
		Label = label;
	}

	public String getTitle() {
		return Title;
	}

	public void setTitle(String title) {
		Title = title;
	}

	public String getDescription() {
		return Description;
	}

	public void setDescription(String description) {
		Description = description;
	}

	public String getUrl() {
		return Url;
	}

	public void setUrl(String url) {
		Url = url;
	}

	public String getEvent() {
		return Event;
	}

	public void setEvent(String event) {
		Event = event;
	}

	public String getEventKey() {
		return EventKey;
	}

	public void setEventKey(String eventKey) {
		EventKey = eventKey;
	}

	
	public String getTicket() {
		return Ticket;
	}

	public void setTicket(String ticket) {
		Ticket = ticket;
	}

	@Override
	public String toString() {
		return "WeixinMsgReq [ToUserName=" + ToUserName + ", FromUserName="
				+ FromUserName + ", CreateTime=" + CreateTime + ", MsgType="
				+ MsgType + ", Content=" + Content + ", PicUrl=" + PicUrl
				+ ", MediaId=" + MediaId + ", Format=" + Format
				+ ", ThumbMediaId=" + ThumbMediaId + ", Location_X="
				+ Location_X + ", Location_Y=" + Location_Y + ", Scale="
				+ Scale + ", Label=" + Label + ", Title=" + Title
				+ ", Description=" + Description + ", Url=" + Url + ", MsgId="
				+ MsgId + ", Event=" + Event + ", EventKey=" + EventKey
				+ ", Ticket=" + Ticket + "]";
	}

}
